﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using SpaceMan.Menus.Items;

namespace SpaceMan.Menus
{
    abstract class I_MEN_Screen
    {
        protected Vector2 Position;
        protected string windowTitle;
        public bool MarkedForDeletion;
        protected bool Minimized;
        protected Rectangle Window;
        protected List<I_Item> menuItems;
        protected void BaseInitialize()
        {
            menuItems = new List<I_Item>();

        }

        public virtual void Update()
        {

        }

        protected void TryCommand(string command)
        {
            switch (command)
            {
                case "close":
                    {
                        this.MarkedForDeletion = true;
                        break;
                    }

                case "minimize":
                    {
                        Minimized = true;
                        break;
                    }

                case "expand":
                    {
                        Minimized = false;
                        break;
                    }
                default:
                    {
                        TryCommand(command);
                        break;
                    }
            }
        }
    }
}
